include ../Make.defines

PROGS =	tcpserv01 tcpcli01 tcpcli04 tcpserv03 tcpserv04 tcpcli11 tcpserv08 tcpcli09 tcpserv09 \
        tcpservselect01 tcpservpoll01

all:	${PROGS}

tcpserv01: tcpserv01.c str_echo.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}
tcpcli01: tcpcli01.c str_cli.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}

tcpcli04: tcpcli04.c str_cli.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}
tcpserv03: tcpserv03.c str_echo.c sigchldwait.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}
tcpserv04: tcpserv04.c str_echo.c sigchldwait.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}

tcpcli11: tcpcli11.c str_cli.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}

tcpserv08: tcpserv08.c str_echo.c sigchldwait.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}

tcpcli09: tcpcli09.c str_cli.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}
tcpserv09: tcpserv09.c str_echo.c sigchldwait.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}

tcpservselect01: tcpservselect01.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}
tcpservpoll01: tcpservpoll01.c $(INCSRC)
	${CC} ${CFLAGS} -o $@ $^ ${LIBS}

clean:
	rm -f ${PROGS}
